#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>

void test_scoreFor() {

	int player = 0;
        struct gameState* state = newGame();

        //score for a single player's hand, discard, & deck
        
	state->handCount[player] = 4;

	state->hand[player][0] = curse;
	state->hand[player][1] = estate;
	state->hand[player][2] = estate;
	state->hand[player][3] = province;

	state->discardCount[player] = 3;

	state->discard[player][0] = estate;
	state->discard[player][1] = duchy;
	state->discard[player][2] = great_hall;

	state->deckCount[player] = 4;

	state->deck[player][0] = estate;
	state->deck[player][1] = curse;
	state->deck[player][2] = duchy;
	state->deck[player][3] = estate;
        
        if (scoreFor(player, state) == 15) {
                printf("scoreFor(): PASS when test has a score of 15\n");
        }
        else {
                printf("scoreFor(): FAIL when test has a score of 15\n");
        }

}

int main() {
        test_scoreFor();
}
